6、所有節(jié)點(diǎn)關(guān)閉python的安全認(rèn)證
修改所有主機(jī)配置
vim /etc/python/cert-verification.cfg
cation.cfgverify=disable
7、安裝ntp服務(wù)
72/73/74安裝ntp服務(wù)并同步時(shí)間
yum -y install ntp; ntpdate time.buptnet.edu.cn
systemctl start ntpd
systemctl enable ntpd
8、安裝ambari
8.1、安裝ambari.repo本地源
下載ambari.repo文件并存至/etc/yum.repos.d/ambari.repo中,因?yàn)閥um命令安裝服務(wù)時(shí),默認(rèn)從/etc/yum.repos.d/目錄下尋找 .repo結(jié)尾的文件源
wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.6.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
?
?
8.2、修改本地源
修改/etc/yum.repos.d/ambari.repo
改成如下配置,紅框圈起來(lái)的部分表示ambari在apache服務(wù)器的目錄
若下載本地源的時(shí)候報(bào)錯(cuò)403 forbiden,則手動(dòng)構(gòu)建源文件
#如果下載不成功,則新建文件
/etc/yum.repos.d/ambari.repo
?
#將如下內(nèi)容cp里面
#VERSION_NUMBER=2.7.4.0-118
[Updates-ambari-2.7.4.0]
name=ambari-2.7.4.0 - Updates
baseurl=http://192.168.101.214/ambari/centos7/2.7.4.0-118/
gpgcheck=1
gpgkey=http://192.168.101.214/ambari/centos7/2.7.4.0-118/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1